package com.mh.study.streams;

import java.util.function.Function;
import java.util.stream.Stream;

/**
 * @author meng.han
 * @since 2022-01-17
 */
public class StreamPipeline {

    public Stream<String> skip(Stream<String> stream, int skipPoint) {
        return stream.skip(skipPoint);
    }

    public Stream<String> skipAndMap(Stream<String> stream, int skipPoint, Function<String, String> function) {
        return stream.skip(skipPoint).map(function);
    }
}
